home *** CD-ROM | disk | FTP | other *** search
/ CD Exchange / CD Exchange - Volume 1.iso / utils / misc / kingcon / docs / kingcon.doc < prev    next >
Encoding:
Text File  |  1993-12-15  |  29.9 KB  |  792 lines

  1. ***************************************************************************
  2. *                                      *
  3. *                                      *
  4. *                --- KingCON 1.1 ---                  *
  5. *                                      *
  6. *                  --- User Documentation ---              *
  7. *                                        *
  8. *            --- Copyright © 1993 David Larsson ---          *
  9. *                                      *
  10. *                                      *
  11. ***************************************************************************
  12.  
  13.  
  14. =========
  15.  Preface
  16. =========
  17.  
  18. The program and files in this distribution are freely distributable,
  19. but are also copyright (c) David Larsson. They may be freely
  20. distributed as long as no more than a nominal fee is charged to cover
  21. time and copying costs.
  22.   No commercial usage is permitted without written permission from the
  23. author.  Everything in this distribution must be kept together, in original
  24. unmodified form.
  25.   The above is generally known as freeware.
  26.  
  27.   Please contact me if you have any comments or suggestions:
  28.  
  29.   E-Mail:  f92dala@dd.chalmers.se
  30.  
  31.   Mail:    David Larsson
  32.             Gibraltarg. 82:150
  33.             S-412 79 GÖTEBORG
  34.             Sweden
  35.        ¯¯¯¯¯¯
  36.  
  37.     ! KingCON needs Kickstart 2.0 or better to run. !
  38.  
  39.  
  40. ==========
  41.  Contents
  42. ==========
  43.  
  44. 1. KingCON compared to CON
  45. 2. Installation
  46. 3. Editing
  47. 4. Filename- command- and device-completion
  48. 5. Review-buffer
  49. 6. Menus
  50. 7. Options when opening the console-window
  51. 8. To do
  52.  
  53.  
  54. ============================
  55.  1. KingCON compared to CON
  56. ============================
  57.  
  58.    The WB2.0 console-handler - CON: - is really good, but it lacks some
  59. very handy features that make life easier if you use it a lot.
  60. KingCON (or KCON) is a replacement that behaves EXACTLY like CON, but it
  61. also adds these important features:
  62.  
  63.    * Filename completion. You just type the first letters of a filename,
  64.      press the TAB-key, and - voilà! - the rest of the name is filled
  65.      in for you (or you will be presented a list of alternative files that
  66.      you can choose from). This makes typing MUCH faster and minimizes
  67.      frustrating misspellings. You can also bring up a standard
  68.      filerequester and select a file that way.
  69.      DOS-commands and devicenames can be completed in a similar way.
  70.      Some of you might say that the Shell should provide this function
  71.      instead, but since all editing is managed by the console-handler
  72.      anyway, this is only natural. And as a "sideeffect", the filename-
  73.      completion will be available AT ALL TIMES - not only when you are
  74.      standing at the shell-prompt.
  75.  
  76.    * Review-buffer. A scrollbar in the right windowborder lets you browse
  77.      through all text that has been output to the window at any time.
  78.      (Very useful when your compiler spits out ten pages of errorlistings.)
  79.      The buffer can be turned on and off, and saved to a separate file.
  80.  
  81.    * Intuition-menus that give you a quick access to the features mentioned
  82.      above. You can control the size of the window, clear it etc.
  83.  
  84.    * Jump-scroll option, which increases output speed a lot.
  85.  
  86.    * The console window can be iconified and put on the Workbench
  87.      as an AppIcon.
  88.  
  89.    * Asynchronous typeahead, if you want to type in the next command while
  90.      watching the output from the previous one.
  91.  
  92.    * Workbench icondrop is supported.
  93.  
  94.    * You can have the current directory displayed in the windowtitle.
  95.  
  96.    * The mouse can be used for positioning the cursor on the input line.
  97.  
  98.    * The text can be any (non-proportional) font you like.
  99.      Topaz 44 is a killer.
  100.  
  101.    * The command-history buffer eliminates identical lines, the window is
  102.      positioned more intelligently etc.
  103.  
  104.    Please note that KingCON does NOT patch CON in any way, it is written
  105. completely from scratch. There is a way, however, to mount KingCON as 'CON:'.
  106. In this way, every program that use 'CON:' will actually be using KingCON
  107. and all the good it stands for.:-> Of course, this is optional.
  108.  
  109.    KRAW: is a replacement for RAW:, but the menus, filename-completion and
  110. review don't work. It has limited use, because you can't run a Shell in it.
  111. See some DOS-documentation for details about the differences between
  112. CON: and RAW:.
  113.  
  114.  
  115.  
  116. =================
  117.  2. Installation
  118. =================
  119.  
  120.   Simply run 'Installation' by double-clicking on its icon.
  121.  
  122.   The install-script does the following things:
  123.  
  124.   * Depending on which processor you have, 'KingCON-handler' or
  125.     'KingCON-handler.020' is copied to L:. Once copied, it is
  126.     always called 'KingCON-handler'.
  127.  
  128.   * 'KingCON-mountlist' is copied to DEVS:
  129.  
  130.   * 'KCON:' and 'KRAW:' are mounted.
  131.  
  132.   * Optionally, the necessary Mount-commands are added to s:user-startup.
  133.     They are:
  134.       Mount KCON: from DEVS:KingCON-mountlist
  135.       Mount KRAW: from DEVS:KingCON-mountlist
  136.  
  137.  
  138.    When KCON: is installed and mounted, you  can try it (at last!) by
  139. typing the following in a shell-window:
  140.  
  141.   Newshell window KCON:
  142.  
  143. or:
  144.  
  145.   Echo "Yes it is!!" >"KCON:////Is this happening?/FONT topaz.22/WAIT/CLOSE"
  146.  
  147. (Make sure you get those /'s right!)
  148.  
  149.  
  150. Mounting KCON: as CON:
  151. ----------------------
  152.    When KingCON is installed, the DOS-devicename for it is 'KCON:' (and
  153. 'KRAW:' for the unbuffered version). If you want that all your
  154. shell-windows you open should be KCON-windows, you just change the
  155. WINDOW-ToolType of the Shell-icon to say KCON: instead of CON:. (See
  156. your Workbench-documentation.) But in this way, you will only get a
  157. KCON-window if you start a new shell by double-clicking on the Shell-icon.
  158. Furthermore, some programs have their own console-windows and won't let
  159. you change them from CON: to KCON:. (Real3D v2.0 is one example).
  160.    What you need is something that makes every reference to 'CON:'
  161. actually lead to KingCON. This is done by mounting 'KCON:' as 'CON:'
  162. instead. BUT, this is normally not possible, since 'CON:' (and 'RAW:')
  163. are mounted before the startup-sequence is executed.
  164.  
  165.    This is the solution:
  166.  
  167.    * Add these lines BEFORE the Mount-commands in the user-startup:
  168.        Assign CON: DISMOUNT
  169.        Assign RAW: DISMOUNT
  170.    * Change the Mount-commands to:
  171.        Mount CON: from DEVS:KingCON-mountlist
  172.        Mount RAW: from DEVS:KingCON-mountlist
  173.  
  174.    Now when you boot, every console-window should be a KingCON-window. There
  175. is no need to have a special KCON: or KRAW:-device. Enjoy!
  176.  
  177. !! WARNING !!
  178.    Before you try the above, PLEASE make sure that the normal installation
  179. was successful and that you can mount KCON: and KRAW: when rebooting.
  180. Make sure that you follow the steps carefully. If something for some reason
  181. goes wrong after the Assign-DISMOUNT-commands, you won't have any console
  182. at all. A very frustrating situation if you must start your favourite
  183. text-editor, in order to correct the mistake, from the Shell... Remember
  184. that you have the Workbench-menu "Execute command" as a final rescue!
  185.  
  186.  
  187. ============
  188.  3. Editing
  189. ============
  190.  
  191.    Note: Everything said here is only true for the "cooked" KCON-console.
  192. KRAW is "raw" and has no editing capabilities. Also, if you have specified
  193. the ASYNC-option, things will work a bit different from what you may be
  194. used to. See the end of this section for details.
  195.  
  196.    'KCON:' is probably most often used as output for the Shell, but editing
  197. works the same if it is a program's private AREXX-console, for example.
  198. Even the filename-completion is identical.
  199.  
  200.    I assume some experience of the editing used in 'CON'. Most things are
  201. identical, the exceptions from this are marked with a (!).
  202.  
  203.    These keys are used for the line-editing:
  204.  
  205. Key            Effect
  206. ---------------------------------------------------------------------------
  207. Any "printable"    char.    Inserts the character pressed under the cursor,
  208.             shifting the characters right of the cursor one
  209.             step to the right.
  210.  
  211.  
  212. Return or         Finishes the line and adds it to the history-buffer,
  213. Control-M        UNLESS it is identical to the previous line.
  214.  
  215. Shift-Return (!)    The line is finished and added to the history-buffer,
  216.             but it is not sent to the command shell. This means
  217.             that it won't be executed.
  218.  
  219. Control-\        Inserts an EOF-character and finishes the line.
  220.             This often means that the window is closed, but it's
  221.             up to the program that opened 'KCON:' to decide.
  222.  
  223. Control-J        Adds a linefeed.
  224.  
  225.  
  226. Right Arrow        Moves the cursor to the right.
  227.  
  228. Left Arrow        Moves the cursor to the left.
  229.  
  230. Up Arrow        Displays the previous history-line.
  231.  
  232. Down Arrow        Displays the next history-line.
  233.  
  234. Shift-Right Arrow or    Cursor to the end of the line.
  235. Control-Z
  236.  
  237. Shift-Left Arrow or    Cursor to the beginning of the line.
  238. Control-A
  239.  
  240. Alt-Right Arrow (!)    Cursor to the beginning of the next word.
  241.  
  242. Alt-Left Arrow (!)    Cursor to the beginning of the previous word.
  243.  
  244. Left Mousebutton (!)    Moves the cursor to to the position on the input-
  245.             line that you clicked on. If you click somewhere
  246.             else in the window, nothing will happen.
  247.             Note that the cursor is moved when the button is
  248.             released and that you must not drag the mouse
  249.             pointer before you release the button.
  250.             You can still select text to be copied to the
  251.             clipboard as usual.
  252.  
  253.  
  254. Backspace        Deletes the character to the left of the cursor and
  255.             shifts the rest of the line to the left.
  256.  
  257. Delete            Deletes the character under the cursor and shifts
  258.             the rest of the line to the left.
  259.  
  260. Shift-Backspace (!) or    Deletes the line to the left of the cursor.
  261. Control-U
  262.  
  263. Shift-Delete (!) or    Deletes the line to the right of the cursor and
  264. Control-K        puts the characters in a cut-buffer (NOT on the
  265.             clipboard.)
  266.  
  267. Alt-Backspace (!) or    Deletes the word that the cursor is standing on
  268. Control-W        to the left.
  269.  
  270. Alt-Delete        Deletes the word that the cursor is standing on
  271.             to the right.
  272.  
  273. Amiga-Delete        Deletes the word that the cursor is standing on.
  274.  
  275. Control-B or        Deletes the whole line.
  276. Control-X
  277.  
  278. Control-L (!)        Deletes the whole line and clears the console.
  279.  
  280.  
  281. Shift-Up Arrow        Finds the next history-line whose leading characters
  282.             match the first characters in the line up to the
  283.             cursor.
  284.  
  285. Shift-Down Arrow    Clears the line and puts you at the end of the
  286.             history buffer. (That means that if you then press
  287.             'Up Arrow', the last line of the history will be
  288.             displayed.)
  289.  
  290.  
  291. Alt-Up Arrow (!)    Scrolls backwards one page in the review-buffer.
  292.             See section 5 about the review.
  293.  
  294. Alt-Down Arrow    (!)    Scrolls forwards one page in the review-buffer
  295.  
  296. Shift-Alt-Up Arrow (!)    Scrolls to the beginning of the review-buffer.
  297.  
  298. Shift-Alt-Down Arrow (!) Scrolls to the end of the review-buffer.
  299.  
  300.  
  301. Amiga-V            Inserts text from the clipboard.
  302.  
  303. Control-Y        Inserts the characters deleted with Control-K or
  304.             Shift-Delete.
  305.  
  306. Control-S        Halts the output (if you are listing a directory
  307.             for example). This could be done by typing any
  308.             key and then type Backspace to resume output.
  309.  
  310. Control-Q        Resumes output again.
  311.  
  312.  
  313. TAB (!)            Filename-completion. See section 4 for details.
  314.  
  315. Shift-TAB (!)        Device-completion. See section 4.
  316.  
  317. Alt-TAB (!)        Command-completion. See section 4.
  318.  
  319.  
  320. Asynchronous typeahead
  321. ----------------------
  322.    Normally, when you press a key while a program ('list' for example) is
  323. outputting text to the console, the output is halted until you have
  324. finished the your input in some way or another. However, if you specify
  325. the ASYNC-option, your keystrokes will be buffered while the output is
  326. going on and printed on the command-line when the prompt returns.
  327.    If you start stepping backwards with the arrow-keys or do something
  328. else that makes it hard for you to keep track of what currently lies in
  329. the buffer or where the cursor is, the output is halted and the buffer
  330. is printed on the command line where you can continue to edit it.
  331.  
  332.  
  333.  
  334. =============================================
  335.  4. Filename- command- and device-completion
  336. =============================================
  337.  
  338.    The idea with xx-completion (or TAB-expansion) is to make typing faster
  339. and more accurate. Once used to it, it will be a great help you don't
  340. want to live without.
  341.  
  342.  
  343. Filename-completion
  344. -------------------
  345.    If you want to enter a specific filename (or a complete path), you start
  346. with entering the first characters in the filename, then press TAB (or
  347. Amiga-F, see section 6). If only one file or directory relative to the
  348. current directory matches those leading characters, the rest of the name
  349. will be filled in for you.
  350.    Normally you just enter the first letters of a filename and then press
  351. TAB. If many files begin with the same letters, you can also use standard
  352. AmigaDOS wildcards to filter out the file you want. For example, if you
  353. want a file that ENDS with the characters '.gif', you type '#?.gif' and
  354. press TAB.
  355.    If more than one file matches the characters you typed, a window with a
  356. list of possible filenames will be opened. You pick the file you want by:
  357.  
  358.     * Clicking on it and then choosing 'OK' or
  359.     * Double-clicking on it or
  360.     * Browse through the names with TAB and Shift-TAB or
  361.       Up- and Down-Arrows, then press Return.
  362.  
  363.    To cancel, you:
  364.  
  365.        * Press 'Cancel' or
  366.        * Close the window or
  367.        * Press ESC.
  368.  
  369.    If you didn't type any characters at all before you pressed TAB (or
  370. Amiga-F), an asl-requester will be opened for you, where you select
  371. your file or directory.
  372.    By default, .info-files are not shown. This can be toggled by selecting
  373. the menu Complete->Show .info. See section 6.
  374.  
  375.  
  376. Command-completion
  377. ------------------
  378.    Command-completion works in the same way as filename-completion. The
  379. difference is that not only the current directory is searched, but also all
  380. the command-paths. Only plain executable files are considered in the search.
  381. If your system has many command-paths, this operation may take a while.
  382.    Command-completion is activated by pressing Alt-TAB or Amiga-M.
  383.  
  384.  
  385. Device-completion
  386. -----------------
  387.    Device-completion is quite simple, and is invoked by pressing Shift-TAB
  388. or Amiga-D. All volumes (like 'Workbench:'), assigns ('L:', 'FONTS:' etc)
  389. and DOS-devices ('PAR:', 'CON:' etc) are searched for a match.
  390.  
  391.  
  392. A few notes on the completion-functions
  393. ---------------------------------------
  394.    After having read this, two questions come to our mind (?):
  395. The first is how spaces in filenames are handled. If you have completed
  396. a filename that includes spaces, quotation-marks will be inserted
  397. automatically in the beginning and the end of the word (where necessary).
  398. Let's say that you want to enter the following path:
  399.  
  400.     My Directory/The Manual.doc
  401.  
  402.    You start by entering 'my' and then press TAB. The line will look
  403. like this:
  404.  
  405.     "My Directory/
  406.  
  407.    Now you enter 'the' and press TAB again. The path is now complete:
  408.  
  409.     "My Directory/The Manual.doc"
  410.  
  411.    Note how one quotation-mark was inserted in front of My Directory and
  412. one after The Manual.doc. The path will now be interpreted as one word
  413. by the command shell.
  414.    If you want to match on a string that contains spaces, you must put
  415. a quotation-mark in front of the first word before you press TAB:
  416.  
  417.     "my dir<TAB>
  418.  
  419.    To sum up, KingCON does the following to determine which filename to
  420. complete: If the line contains and ODD number of "'s left of the the cursor, the
  421. name is taken from the last quotation-mark to the position of the cursor.
  422. Otherwise, the beginning of the word is taken from the character next
  423. to the first space, comma, or one of ' = < >. (Dot not included.)
  424.  
  425.    The second question (remember?) is probably: What is this talk about
  426. 'current directories' and 'command-paths'? 'KCON:' is just a DOS-device
  427. and has no 'current dir' like the Shell. Is 'KCON:' some kind of
  428. shell or what??
  429.    The answer is that KingCON keeps track of which process that opened a
  430. KCON-window. Every time you invoke filename- or command-completion, KingCON
  431. looks at which directory is the current directory for the process that
  432. opened the window. Command-paths are also found this way.
  433.    If the process that opened the window dies before the window is closed
  434. (this could be the case if it is a WAIT-window. See section 7), KingCON
  435. keeps the directory that was used last time some kind of completion was
  436. activated. Command-paths are lost, though.
  437.  
  438.  
  439. Dropping icons on the console
  440. -----------------------------
  441.   Another quick way to insert a filename on command-line is to drag one
  442. or more icons from the Workbench over the console window and droping them
  443. there. The complete path for the icon, including quotation-marks (when
  444. necessary), will be printed.
  445.    This is only possible if the window was opened on the Workbench-screen.
  446.  
  447.  
  448.   I've said it before, but I'll do it again, for the sake of clarity:
  449. KingCON is NOT a Shell, despite of the filename-completion and some other
  450. functions. No interpretation of what you type is done. To the programs
  451. that use 'KCON:' for input and output, it behaves just like 'CON:'.
  452.  
  453. ==================
  454.  5. Review-buffer
  455. ==================
  456.  
  457.    One of the major differences between a CON-window and a KCON-window is
  458. that the latter has a scrollgadget in the left windowborder, that lets you
  459. browse through all the text that has been output to it since it was opened.
  460.  
  461.    When you have done a long directory-listing and want to go back to take
  462. a look at the first files that were listed, you just grab the knob and
  463. move it up until you find the place you looked for. The arrows can be used
  464. to scroll (approx.) one row up and down.
  465.    As soon as you type something on the keyboard or a program wants to
  466. output something to the window, the "review-mode" is exited and the
  467. scrollknob moves to the bottom. This means that if you try to scroll while
  468. a file is being Type'd, the text will jump up and down between the position
  469. you want to look at and the bottom of the review-buffer. Confusing, maybe,
  470. but fully normal.
  471.    If you have typed a few characters on the edit-line and then begin to
  472. scroll before you press Return, the line will disappear. But as soon as
  473. you type something again, the "review-mode" is exited and the line will
  474. be visible again.
  475.  
  476.  
  477. Differences between buffered text and original output
  478. -----------------------------------------------------
  479.    The text shown in the review-buffer doesn't always look like the text
  480. that originally was output to the window. Control-sequences to move the
  481. cursor, delete characters etc are not interpretated, which means that some
  482. programs that do fancy things to their output won't look that fancy when
  483. you begin dragging the scrollknob. This is not a bug, just a sacrifice
  484. for speed. :->
  485.    If you specify the NOSTYLES-option, all textstyle control-sequences will
  486. be filtered. This saves some memory and perhaps speeds up output on plain
  487. 68000's. The text in the buffer will always be black and white, though.
  488.  
  489. Memory-management
  490. -----------------
  491.    The memory for the buffer is allocated dynamically when something is
  492. output to the window. Normally a maximum of 64Kb can be allocated for
  493. the buffer before the first lines start disappearing. The limit can
  494. be set to another value with the MAXBUF-option. (See section 7.)
  495.    Don't forget that no memory is allocated for the buffer when the console
  496. window is opened, because of its dynamic nature. The drawback with this is
  497. that you lose memory for every line you write. This can be frustrating if
  498. you are debugging a program to see if it frees all memory when it returns.
  499. ('Avail', 'Program', 'Avail', you know.) In those situations, you should
  500. disable both the history-buffer and the review-buffer.
  501.  
  502. Some notes on speed (68000-owner, read this!)
  503. ----------------------------------------------
  504.    You may notice that output is slowed down a bit when the buffer is
  505. enabled, especially if you have a plain 68000-Amiga. On faster machines,
  506. it takes more time just to scroll the window than to manage the buffer,
  507. so it shouldn't be a problem there.
  508.    If you DO find it too slow, there are five things you can do:
  509.  
  510.    * Enable the jump-scroll. This can be done with the JUMP-option or
  511.      by selecting the "Console » Jump scroll"-menu. Output will be fast
  512.      but maybe a bit jumpy.
  513.  
  514.    * Specify the NOGADS-option. You will still have a review-buffer as
  515.      usual, but no scrollgadget in the right windowborder. Because the
  516.      updating of the scrollgadget has much overhead, removing it in this
  517.      way is probably enough to solve the speedproblem.
  518.  
  519.    * Select the "Review » Enabled" menu to disable the buffer temporarily.
  520.      You will still be able to scroll back to text that was buffered
  521.      earlier, though.
  522.  
  523.    * Specify the NOREVIEW-option. In this way, you won't get any review-
  524.      buffer at all.
  525.  
  526.    * Specify the NOSTYLES-option. The buffered text will only be black and
  527.      white and you can save a lot of memory this way. Speed is also affected,
  528.      especially if the text that is ouput to the window has a lot of
  529.      fancy colors and styles.
  530.  
  531.  
  532.  
  533. ==========
  534.  6. Menus
  535. ==========
  536.  
  537.    The menubar contains the following menus and menuitems:
  538.  
  539. "Console"-menu:
  540. ---------------
  541.     Reset        (Z)    - Clears the console-window and resets all
  542.                   styles etc. Use this if a program leaves
  543.                   the window in a complete mess.
  544.     Jump scroll        - If checked, output speed will be increased
  545.                   by scrolling the window several lines
  546.                   at the time. By default, jump-scroll
  547.                   is disabled, because it isn't 100%
  548.                   compatible with programs that do their
  549.                   own jump-scrolling, like 'more'.
  550.                   Use the JUMP-option to have this function
  551.                   enabled when the window is opened.
  552.     Iconify    (I)        - The console window is iconified and put
  553.                   on the Workbench as an AppIcon. If
  554.                   you specify the NOICON-option, the menu
  555.                   will read "Minimize", and the window
  556.                   window will just be as small as possible
  557.                   instead of being turned into an icon.
  558.                   This will also happen in some other cases
  559.                   when it isn't possible to iconify the
  560.                   window for compability reasons.
  561.     Normalize    (N)    - Positions the window at the same place
  562.                   with the same size as when it was opened.
  563.                   Can be disabled.
  564.     Maximize    (A)    - Makes the window as big as possible
  565.                   within the visible area of the screen.
  566.                   Can be disabled.
  567.     Halt        (H)    - Halts output.
  568.     Resume        (R)    - Resumes output.
  569.     About...    (?)    - Opens a requester telling you about the
  570.                   current version of KingCON, the author etc.
  571.     Close        (Q)    - The same as clicking in the window's
  572.                   closegadget or typing Control-\. The
  573.                   process that owns the window decides if
  574.                   it should be closed.
  575.  
  576. "Complete"-menu: (See also section 4!)
  577. --------------------------------------
  578.     Filename    (F)    - Completes a filename or directoryname.
  579.                   The same as pressing TAB.
  580.     Command        (M)    - Completes a DOS-command. Same as pressing
  581.                   Alt-TAB.
  582.     Device        (D)    - Completes a devicename. Same as pressing
  583.                   Shift-TAB.
  584.     Show .info        - If checked, .info-files will be considered
  585.                   when KingCON is looking for matches.
  586.  
  587. "Review"-menu: (See also section 5!)
  588. ------------------------------------
  589.     Enabled            - If checked, all text output to the window
  590.                   will be saved in the review-buffer. If
  591.                   not, you will still be able to scroll
  592.                   through old text, but no new text will
  593.                   be added.
  594.     Clear buffer        - Clears the review-buffer.
  595.     Save plain text as...    - Lets you select a file to which the buffer
  596.                   will be saved as plain text.
  597.     Save with styles as...    - Lets you select a file to which the buffer
  598.                   will be saved, including control-sequences
  599.                   for text style and color.
  600.  
  601. "History"-menu:
  602. ---------------
  603.     Enabled            - If checked, lines typed by you will be
  604.                   saved in the command-history buffer.
  605.                   If not, no lines are saved, but you will
  606.                   still be able to browse through the lines
  607.                   that are already in the buffer.
  608.     Clear buffer        - Clears the history-buffer.
  609.  
  610.  
  611.    The menus are ghosted while the console is in RAW-mode. The NOMENUS-
  612. option opens a window without a menubar. See section 7.
  613.  
  614.  
  615.  
  616. ============================================
  617.  7. Options when opening the console-window
  618. ============================================
  619.  
  620.    A KCON-window is opened in the same way as a CON-window. The template
  621. for the "filename" is:
  622.  
  623.     KCON:LeftEdge/TopEdge/Width/Height/Title/Options/...
  624.  
  625.    All keywords are optional. If you want the default-value, you write
  626. nothing. For example, if you want to specify a title, but no position or
  627. size, you write: (Don't forget the quotation-marks if you have spaces
  628. in the filename!)
  629.  
  630.     "KCON:////My Title"
  631.  
  632.    The meaning of the keywords are quite obvious. The default is to
  633. open a window that covers covers the whole horisontal and half the
  634. vertical visible area of the screen. The window is positioned below the
  635. menubar of the screen if possible. The default title is 'KingCON'.
  636.    This differs a bit from CON, which always opens a window in the top
  637. left corner of the screen with a fixed height. I think KingCON's way of
  638. opening is better. :-)
  639.  
  640.    The options allow you to customize the window. First the ones that
  641. are compatible with CON:
  642.  
  643.    AUTO        The window isn't opened until some text is output to it or
  644.            a program wants to read from it. It also gets a close-gadget.
  645.         You can also use the AUTOICON-option for the same purpose
  646.         if you want an icon for the window.
  647.  
  648.    CLOSE    The window is equipped with a closegadget.
  649.  
  650.    BACKDROP    The window is opened as a backdrop behind all other
  651.            windows on the screen.
  652.  
  653.    NOBORDER    The window has no border. Very confusing.
  654.  
  655.    NODRAG    The window has no dragbar.
  656.  
  657.    NOSIZE    The window has no sizing-gadget or zoom-gadget. The "Shrink"-
  658.            and "Expand"-menuitems are disabled.
  659.  
  660.    SIMPLE    You can mark and copy text from the console. This is
  661.            the default.
  662.  
  663.    SMART    The opposite of SIMPLE. This is the way the console window
  664.            was before v2.0 of the OS. If the window is scaled down and
  665.            then resized again, you will lose the text that was printed
  666.            on the revealed portions of the window.
  667.  
  668.    WAIT        The window isn't closed until you type Control-\, select
  669.            Quit or click the closegadget.
  670.  
  671.    SCREEN <name>  The window will be opened on a public screen with a
  672.            certain name (case-sensitive!). To open on the screen
  673.            "TERM", you type: .../SCREEN TERM/... or .../SCREENTERM/...
  674.  
  675.    WINDOW <address>  The console is attached to an already open window
  676.            with the address expressed in hexadecimal numbers.
  677.            The review-buffer will be disabled for compability.
  678.  
  679.    INACTIVE    The window isn't activated when it is opened.
  680.  
  681.    ALT<x>/<y>/<w>/<h>  When the zoom-gadget is clicked, the window will
  682.         get the position and dimensions described by x,y,w & h.
  683.         For example, ...ALT100/100/400/50... will make the window
  684.         a thin strip in the middle of the screen when you click
  685.         the zoom-gadget.
  686.  
  687.  
  688.    These options are new for KingCON:
  689.  
  690.    AUTOICON    This is exactly the same as the AUTO-option, except that
  691.         an AppIcon is put on the Workbench as long as the window is
  692.         closed. If you try a lot of PD-programs, it can be convenient
  693.          to have the following line in the startup-sequence:
  694.             Run Enforcer FILE CON:////Bang!/AUTOICON
  695.  
  696.    MINI        The window is minimized the first time you hit the
  697.            zoom-gadget instead of being resized to fill the
  698.            whole screen.
  699.  
  700.    NOGADS    No scrollgadget in the right windowborder is created. On
  701.             slower machines this will increase the speed of the review-
  702.             buffer noticeably. You can still use the keys described
  703.             in section 3 to scroll through buffered text, of course.
  704.  
  705.    NOREVIEW    The window gets no review-buffer. No scrollgadget is
  706.            created and the "Review"-menu is disabled. If you just
  707.            want to gain speed, first try the NOGADS-option.
  708.  
  709.    NOSTYLES    Control-sequences that control textstyle and -color are
  710.            not saved in the review-buffer. Buffered text will be
  711.            plain black and white.
  712.  
  713.    NOFNC    (Short for No FileName Completion). The TAB, Shift-TAB and
  714.            ESC-keys don't activate any completion-function in order
  715.            to be compatible with CON. Note that you can still
  716.            use the "Completion"-menu!!!
  717.  
  718.    NOMENUS    No menubar is created.
  719.  
  720.    PLAIN    The same as NOREVIEW/NOFNC/NOMENUS. The window will behave
  721.            exactly like a CON-window.
  722.  
  723.    JUMP        Enables jump-scroll. You can also use the
  724.            "Console » Jump scroll" menu to enable it. Note that some
  725.            programs, like 'more', don't like jump-scroll.
  726.  
  727.    NOICON    The window will just be minimized instead of iconified
  728.         when you select Iconify/Minimize from the menu.
  729.  
  730.    ASYNC    Enables asynchronous typeahead. See also end of section 3.
  731.  
  732.    SHOWDIR    The current directory is displayed in the titlebar.
  733.  
  734.    MAXBUF <size>  Sets the biggest size for the review-buffer in kilobytes.
  735.         The smallest possible value 4. It is not always wise to
  736.         set the size to a very big value, because your system
  737.         can run out of memory if you output a lot of text to
  738.         the console.
  739.    FONT <name.size>  Another font than the default-font is used. To specify
  740.            a bigger topaz-font you type: .../FONT topaz.44/... or
  741.            .../FONTtopaz.44/... Note that the font must be monospaced
  742.            or the window will fail to open!
  743.            I suggest that you use the FONT-option to change the font
  744.            instead of the SETFONT-command.
  745.  
  746. ==========
  747.  8. To do
  748. ==========
  749.  
  750.    KingCON introduces some very useful features that makes it a worthy
  751. replacement for CON. But there are still a few things I want to see
  752. in a future version:
  753.  
  754.    * Most certainly next version will contain some kind of preference-editor.
  755.      This will let you set the default-options (so you won't have to
  756.      specify CLOSE for every window you open, for example), set the size
  757.      of the buffers etc. I'm also thinking of an extra option where you
  758.      select which preferences you wish to use.
  759.  
  760.    * Configurable editing- and function-keys.
  761.  
  762.    * More TAB-expansion-methods, for those who like the way that many
  763.      UNIX-shells work.
  764.  
  765.    * The review-buffer could be more intelligent and interpret cursor-moves.
  766.  
  767.    * A new completion-function that completes words from a textfile that
  768.      you specify. All the switches for DOS-commands, for example.
  769.  
  770.    * A special gadget in the titlebar for iconifying the window.
  771.  
  772.    * Localized menus, Kickstart 3.0-specific functions, smaller, faster...
  773.  
  774.    If you have something else that you would like to see implemented in
  775.    KingCON (or if you find one of those annoying b*gs), feel free to mail
  776.    me. Who knows, maybe I do something about it!
  777.  
  778.  
  779.            /|t last I want to say a BIG THANKYOU to everybody
  780.           / |that have reported bugs and come with good ideas.
  781.          /  |Most new features in this version are here thanks
  782.         /¯¯¯|to you (and me of course).
  783.        /    |
  784.       ¯¯   ¯¯¯
  785.  
  786.  
  787.         /¯\ David Larsson /¯\  Engineering Physics                /¯\_/¯¯¯¯
  788.        /   \_/¯\   /¯¯¯\_/   \ Chalmers University of Technology / Sweden
  789.       /         \_/           \      /¯\   /¯\     /¯\_/¯\      /
  790. ¯\   /                         \    /   \_/   \   /       \    /
  791.   \_/  f92dala@dd.chalmers.se   \__/           \_/         \__/
  792.